package soccer.helper;

import hari2.latihan.Person;

import java.util.Comparator;

import soccer.domain.Klub;

public class UrutKlubByNama implements Comparator<Klub>{

	@Override
	public int compare(Klub arg0, Klub arg1) {
		int result = Integer.toString(arg0.getPoint()).compareTo(Integer.toString(arg1.getPoint()));
		//if(result==0){
			//result = Integer.toString(arg0.getDifGoalCon()).compareTo(Integer.toString(arg1.getDifGoalCon()));
		//}
		return result;
	}

}
